﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Xml.Linq;

namespace HigLabo.Net.Twitter
{
    public partial class TwitterClient
    {
        #region  Timelines
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public StatusCollection GetMentionsTimeline()
        {
            return this.GetMentionsTimeline(null as GetMentionsTimelineCommand);
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="command"></param>
        /// <returns></returns>
        public StatusCollection GetMentionsTimeline(GetMentionsTimelineCommand command)
        {
            String jsonText = this.GetResultText(TwitterApiUrl.Version1_1.Statuses.MentionsTimelineJson, command);
            return new StatusCollection(jsonText);
        }
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public StatusCollection GetUserTimeline()
        {
            return this.GetUserTimeline(null as GetUserTimelineCommand);
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="command"></param>
        /// <returns></returns>
        public StatusCollection GetUserTimeline(GetUserTimelineCommand command)
        {
            String jsonText = this.GetResultText(TwitterApiUrl.Version1_1.Statuses.UserTimelineJson, command);
            return new StatusCollection(jsonText);
        }
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public StatusCollection GetHomeTimeline()
        {
            return this.GetHomeTimeline(null as GetHomeTimelineCommand);
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="command"></param>
        /// <returns></returns>
        public StatusCollection GetHomeTimeline(GetHomeTimelineCommand command)
        {
            String jsonText = this.GetResultText(TwitterApiUrl.Version1_1.Statuses.HomeTimelineJson, command);
            return new StatusCollection(jsonText);
        }
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public StatusCollection GetRetweetsOfMeTimeline()
        {
            return this.GetRetweetsOfMeTimeline(null as GetRetweetsOfMeTimelineCommand);
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="command"></param>
        /// <returns></returns>
        public StatusCollection GetRetweetsOfMeTimeline(GetRetweetsOfMeTimelineCommand command)
        {
            String jsonText = this.GetResultText(TwitterApiUrl.Version1_1.Statuses.RetweetsOfMeJson, command);
            return new StatusCollection(jsonText);
        }
        #endregion
    }
}
